#include <iostream>
#include <vector>

using namespace std;

bool findInt(vector<int>::iterator first, vector<int>::iterator last, int val)
{
	while(first!=last)
	{
		if(*last==val)
			return true;
		last--;
	}
	return false;
}

int main()
{
	int arr[10] = {0,1,2,3,4,5,6,7,8,9};
	vector<int> ivec(arr,arr+10);
	int val=15;
	int *first,*last;
	first=ivec.begin();
	last=ivec.end();
	if(findInt(first,last,val))
		cout<<"yes"<<endl;


	return 0;
}